package com.active.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class ActiveList {

    private Integer id;

    private String name;

    private Integer activeId;

    private Integer nodeNum;

    private Integer nodeIndex;

    /**
     * 0-未完成  1-已完成
     */
    private Integer hasFinished;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss.SSSZ")
    private Date createTime;

    /**
     * 0-未开始
     * 1-进行中
     * 2 - 完成(包含未完成和已完成)
     */
    private Integer state;

    private Integer userId;

    public ActiveList() {
    }

    public ActiveList(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getActiveId() {
        return activeId;
    }

    public void setActiveId(Integer activeId) {
        this.activeId = activeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getNodeNum() {
        return nodeNum;
    }

    public void setNodeNum(Integer nodeNum) {
        this.nodeNum = nodeNum;
    }

    public Integer getNodeIndex() {
        return nodeIndex;
    }

    public void setNodeIndex(Integer nodeIndex) {
        this.nodeIndex = nodeIndex;
    }

    public Integer getHasFinished() {
        return hasFinished;
    }

    public void setHasFinished(Integer hasFinished) {
        this.hasFinished = hasFinished;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
